Simplex-Algorithmus (vereinfacht):
Input: Matrix $A \in \IR^{k \times n}$, Vektoren $b \in \IR^k$, $c \in \IR^n$, Basis $B \subseteq [n]$ zu Ecke v. $P^=(A,b)$
Output: Optimale Lösung von $\min c^Tx \text{ u.d.N. } x \in P^=(A,b)$
-
Setze $N = [n] \setminus B$ .....................
-
While $r_N^T := c_B^T(A^B)^{-1}A^N-c_N^T \not\leq 0$ Do
-
.. Wähle den ersten Index $s$ mit $(r_N)_{s} > 0$
-
.. Wähle den ersten Index $p$ mit
\[\frac{((A^B)^{-1}b)_{p}}{((A^B)^{-1}A^N)_{p,s}} = \min_{i \in [k]}\Set{\frac{((A^B)^{-1}b)_{i}}{((A^B)^{-1}A^N)_{i,s}} | ((A^B)^{-1}A^N)_{i,s} > 0}\]
..
-
.. Vertausche $N[s]$ und $B[p]$ ...........
-
Bestimme die durch $B$ beschriebene Ecke $x \in P^=(A,b)$
-
Return $x$